<?php 
require "../model/class_Nav.php";
require "../model/class_Bin.php";
$bin=new Bin();
require "../defines.php";

$quant=$bin->get_quant();
$i = $bin->filter($sort);
$all = $bin->get_all($get_id);
isset($_GET['excid']) ? $bin->exc_bin($_GET['excid']) : null;

			/////////////NAVIGATOR////////////
//max per page
define("PERPAGE", 5);
//check variable
if (!isset($get_off)){
	$totaloffset=0;
}
else{
	//clean variable here
	//then calc record offset
	$totaloffset = $get_off * PERPAGE;
}
$pagename = basename($_SERVER["PHP_SELF"]);
$totalcount = $bin->get_quant();
$numpages = ceil($totalcount/PERPAGE);

				////////PRODUCT OUTPUT///////
$data = $bin->get($totaloffset, PERPAGE, $cat, $sort);
?>